# export domain="youling.io"
# export registry_host="registry.youling.io"
# helm upgrade --install gitlab gitlab-jh/gitlab \
#   --timeout 600s \
#   --create-namespace -n gitlab \
#   --set global.hosts.domain=$domain \
#   --set certmanager-issuer.email='16866120@qq.com' \
#   --set gitlab.migrations.image.repository=gitlab-jh.tencentcloudcr.com/cng-images/gitlab-toolbox-jh \
#   --set gitlab.sidekiq.image.repository=gitlab-jh.tencentcloudcr.com/cng-images/gitlab-sidekiq-jh \
#   --set gitlab.toolbox.image.repository=gitlab-jh.tencentcloudcr.com/cng-images/gitlab-toolbox-jh \
#   --set gitlab.webservice.image.repository=gitlab-jh.tencentcloudcr.com/cng-images/gitlab-webservice-jh \
#   --set gitlab.workhorse.image.repository=gitlab-jh.tencentcloudcr.com/cng-images/gitlab-workhorse-jh \
#   --set certmanager.rbac.create=false  \
# --set nginx-ingress.rbac.createRole=false \
# --set prometheus.rbac.create=false \
# --set gitlab-runner.rbac.create=false \
# --set gitlab-runner.runners.privileged=true
#kubectl get secret <name>-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode ; echo

helm upgrade --install --create-namespace gitlab gitlab-jh/gitlab -n gitlab -f ./git/gitlab/gitlab.yaml
